package org.example.mapstruct.mapper;

import org.example.mapstruct.common.dto.NovelDto;
import org.example.mapstruct.common.entity.Book;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface BookMapper {
    BookMapper INSTANCE = Mappers.getMapper(BookMapper.class);

    NovelDto toNovelDto(Book book);
}
